﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

namespace shop.util
{
    public class DButil
    {
        //1.连接字符串
        private static readonly string strCon = ConfigurationManager.ConnectionStrings["strCon"].ConnectionString;
        public static SqlConnection getConnection()
        {
            SqlConnection con = new SqlConnection(strCon);
            return con;
        }
    }
}